package com.itheima.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.dto.PageDTO;
import com.itheima.mp.domain.po.User;
import com.itheima.mp.domain.query.UserQuery;
import com.itheima.mp.domain.vo.UserVO;

import java.util.List;

/**
 * @author YUBOY
 * @date 2025/1/12
 * @Description
 */
public interface IUserService extends IService<User> {
    void deductBanlance(Long userId, Integer money);

    List<User> queryUsers(String name, Integer status, Integer minBalance, Integer maxBalance);

    UserVO queryUserAndAddress(Long id);

    List<UserVO> listQueryUserAndAddress(List<Long> ids);

    PageDTO<UserVO> queryUserByPages(UserQuery userQuery);
}
